package com.example.horizonserver.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Vehicle implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String image;
    private String number;
    private String categoryName;
    @TableField(value = "status")
    private Integer status;
    private LocalDateTime lastUseTime;
    private LocalDateTime lastMaintainTime;
}
